<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>fecth的响应数据</title>
</head>
<body>
    
    <script>
        fetch("http://localhost:3000/emps").then(function(response){
             return response.text();
        }).then(function(data){
             console.log(data);
             console.log(JSON.parse(data));
        });
    </script>
</body>
</html>